﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Builder
{
    /// <summary>
    /// 抽象建造者职能
    /// </summary>
    abstract class Builder
    {
        //创建产品对象
        protected Product product = new Product();
        public abstract void buildPartA();
        public abstract void buildPartB();
        public abstract void buildPartC();
        //返回产品对象
        public Product getResult()
        {
            return product;
        }
    }
}
